package com.restaurant.springboot.entity.dto;

import com.restaurant.springboot.entity.DishesEntity;

import java.math.BigDecimal;

public class DishesDTO {

    private Integer id;
    private String name;
    private BigDecimal price;
    private String resume;
    private String photoUrl;
    private String state;
    private Integer saleNum;
    private Integer storeNum;
    private Integer dishesSeriesId;

    public DishesDTO(DishesEntity dishesEntity) {
        this.id = dishesEntity.getId();
        this.name = dishesEntity.getName();
        this.price = dishesEntity.getPrice();
        this.resume = dishesEntity.getResume();
        this.photoUrl = dishesEntity.getPhotoUrl();
        this.state = String.valueOf(dishesEntity.getState());
        this.saleNum = dishesEntity.getSaleNum();
        this.storeNum = dishesEntity.getStoreNum();
        this.dishesSeriesId = dishesEntity.getDishesSeriesId();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getResume() {
        return resume;
    }

    public void setResume(String resume) {
        this.resume = resume;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public int getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(int saleNum) {
        this.saleNum = saleNum;
    }

    public int getStoreNum() {
        return storeNum;
    }

    public void setStoreNum(int storeNum) {
        this.storeNum = storeNum;
    }

    public int getDishesSeriesId() {
        return dishesSeriesId;
    }

    public void setDishesSeriesId(int dishesSeriesId) {
        this.dishesSeriesId = dishesSeriesId;
    }
}
